<%--
  Created by IntelliJ IDEA.
  User: nguyentrongduy
  Date: 25/7/12
  Time: 1:54 PM
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
    <meta name="layout" content="main">
    <title></title>
</head>
<body>

<g:render template="/congNghe/createEditCongNghe/congNgheHeader" model="['step':2]"></g:render>

<div class="marginLeftLarge">
    <g:message code="congnghe.tenCongNghe.label"></g:message>
    <span class="fontItalic">${congNghe?.ten}</span>
</div>

<g:render template="/nguyenCong/list" model="['congNghe':congNghe]"></g:render>

<div class="quoteBig marginLeftLarge  marginTopLarge marginBottomLarge ">
    <g:message code="createProductFlow.themNguyenCong.title"/>
</div>

<div class="marginLeftLarge  marginTopLarge marginBottomLarge">

    <g:if test="${flash.message}">
        <div class="message" role="status">${flash.message}</div>
    </g:if>

    <g:hasErrors bean="${nguyenCong}">
        <ul class="errors" role="alert">
            <g:eachError bean="${nguyenCong}" var="error">
                <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
            </g:eachError>
        </ul>
    </g:hasErrors>

    <g:form>
        <g:render template="/nguyenCong/form" model="['nguyenCongInstance':nguyenCong]"></g:render>

        <fieldset class="buttons marginTopMiddle">
            <div>
                <div class="floatR">
                    <g:submitButton name="save" class="" value="${message(code:'button.nholai')}" />
                </div>
                <div class="clear"></div>
            </div>

        </fieldset>
        <fieldset class="buttons marginTopLarge">
            <div>
                <div class="floatL">
                    <g:submitButton name="huy" class="cancel" value="${message(code:'button.huy')}" />
                    <g:submitButton name="tiep" class="" value="${message(code:'button.tieptuc')}" />
                </div>
                <div class="clear"></div>
            </div>

        </fieldset>
    </g:form>

</div>

</body>
</html>